const getters = {
  sidebar: state => state.app.sidebar,
  language: state => state.app.language,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  tokenName: state => state['system/user'].tokenName,
  token: state => state['system/user'].token,
  user: state => state['system/user'].user,
  avatar: state => state['system/user'].avatar,
  roles: state => state['system/user'].roles,
  permissions: state => state['system/user'].permissions,
  permission_routes: state => state.permission.routes,
  addRoutes: state => state.permission.addRoutes,
  errorLogs: state => state.errorLog.logs
}
export default getters
